package com.ztf0337.mycurriculumdesign.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "rent_table")

public class RentedParkingSpace {
    @PrimaryKey(autoGenerate = true)
    private Long id;
    @ColumnInfo(name = "user_id")
    private Long userId;
    @ColumnInfo(name = "park_lot_id")
    private Long parkLotId;
    @ColumnInfo(name = "parking_space_id")
    private Long parkingSpaceId;
    @ColumnInfo(name = "order_id")
    private Long orderId;
    @ColumnInfo(name = "start_time")
    private Long startTime;
    @ColumnInfo(name = "park_lot_name")
    private String parkLotName;
    @ColumnInfo(name = "parking_space_number")
    private String parkingSpaceNumber;
    @ColumnInfo(name = "type")
    private String type;
    @ColumnInfo(name = "location")
    private String location;
    @ColumnInfo(name = "licence_plate")
    private String licencePlate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getParkLotId() {
        return parkLotId;
    }

    public void setParkLotId(Long parkLotId) {
        this.parkLotId = parkLotId;
    }

    public Long getParkingSpaceId() {
        return parkingSpaceId;
    }

    public void setParkingSpaceId(Long parkingSpaceId) {
        this.parkingSpaceId = parkingSpaceId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }


    public String getParkLotName() {
        return parkLotName;
    }

    public void setParkLotName(String parkLotName) {
        this.parkLotName = parkLotName;
    }

    public String getParkingSpaceNumber() {
        return parkingSpaceNumber;
    }

    public void setParkingSpaceNumber(String parkingSpaceNumber) {
        this.parkingSpaceNumber = parkingSpaceNumber;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLicencePlate() {
        return licencePlate;
    }

    public void setLicencePlate(String licencePlate) {
        this.licencePlate = licencePlate;
    }

    public String getParkingInfo() {
        return parkLotName + " · " + parkingSpaceNumber;
    }

}
